home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / keyb / fkey1_1.zip / FKEY.DOC < prev    next >
Text File  |  1987-10-25  |  3KB  |  71 lines

  1. ** FKEY Version 1.1**                            10/25/87
  2. ** By M. B. Page **
  3.  
  4. FKEY allows you to assign one are more DOS commands to a single function key.
  5. The result is a saving of disk space considering that DOS uses a minimum of
  6. 2k for batch files.  Since FKEY uses pre-defined DOS commands, batch file
  7. % variables can not be passed.  However, FKEY will allow you to assign your
  8. simple and commonly used batch file commands to your function keys, or the 
  9. name of a complex batch file that resides on disk to a function key.
  10.  
  11. Purpose:    Assigns DOS command(s) to function key(s).
  12. Usage:    FKEY 2 dir cls cd\DIRname etc..
  13.  
  14. In the above usage example, FKEY assigns the DOS commands to function
  15. key 2. Upon executing the above example the dos commands will be issued when
  16. ever the F2 function key is pressed just like a batch file.  
  17.  
  18. NOTE: FKEY will override DOS's normal use of function keys. If the key F3 is
  19. assigned a string of commands, the normal F3 function (repeat last DOS command) 
  20. will be replaced with the new FKEY assignment.
  21.  
  22. FKEY can also be used to execute batch files, by assigning a batch 
  23. file to a function key.  You can assign multiple DOS commands to a 
  24. single function key.  For example: FKEY 3 cd\letters type" "letter.txt 
  25. will result in changing your current directory to the \letters directory, and
  26. typing the file named letter.txt.
  27.  
  28. NOTE: In the above example, the quotes tell FKEY NOT to insert a Carriage
  29. Return so that (type" "letters.txt) will be executed as (type letters.txt).
  30.  
  31. If you just type FKEY and press enter, a brief explanation of the usage
  32. is provide as reminder.  FKEY commands can also be called from batch files.
  33. This version does not support the ">nul" pipe to suppress FKEY messages.
  34.  
  35. Example batch file:     Fkins.bat
  36.                         echo off
  37.                         cls
  38.                         FKEY 1 cls cd\wordproc wordproc
  39.                         FKEY 2 cls cd\database dir/w
  40.                         FKEY 3 cd\letters type" "letters.txt"|MORE"
  41.                         FKEY 4 dir"|MORE"
  42.  
  43. FKEY is the result of my present attempt to learn the C language.  In order
  44. for this program to work, you must have the DOS ANSI.SYS driver install in 
  45. memory. (See your DOS manual for instructions on how to add ANSI.SYS) to 
  46. your config.sys file at boot time.
  47.  
  48. TRICKS and TRAPS:
  49. o FKEY does support ECHO OFF commands but requires an ECHO ON to re-enable echo.
  50. o Remember that ECHO OFF would by assigned as.. ECHO" "OFF. So that FKEY won't
  51.   place a Carriage Return between ECHO and OFF.
  52. o This version of FKEY does not support the PAUSE command. (causes FKEY to stop
  53.   batch file execution).
  54. o In order to use the |MORE DOS pipe, place it in quotes ie.. "|MORE".
  55.   EXAMPLE: FKEY 1 dir"|MORE". If you leave out the quotes, the |MORE directive
  56.   is omitted.
  57. o Any use of pipe commands ie.. PAUSE,|MORE,/P will cause FKEY to stop batch
  58.   file execution so these commands should be the last of a series assigned to
  59.   a given function key.
  60.  
  61. FKEY is provided to share with your friends, upload to BBS's etc.. 
  62. Provided that this file FKEY.DOC is included.
  63.  
  64. If you find this program useful and wish to support my efforts in
  65. providing DOS enhancement utilities, Send $5.00 to:
  66.  
  67.                 M. B. Page
  68.                 1815 Sunshine Circle
  69.                 Aiken, South Carolina 29801
  70.  
  71.